﻿@using Fyp.Models
@{
    Layout = "~/Shared/_layoutPage.cshtml";
    var PageTitle = "ShowStudents";
    var data = (List<Student>)@ViewData["studnt"];


}
@section title
{
 @PageTitle
}
<div id="main" class = "background">
 
<strong>
            <div id="content"  style="margin-left: 98px;margin-bottom: -1px;">
                 <h2 style="text-align: center;">View Student</h2>
             </div>
    </strong> 
<table border="1" style="margin-left:140px; margin-bottom: 10px">
        <thead>
           <tr>
               <th class="table">Student Name</th>
               <th class="table">Roll No</th>
               <th class="table">Email</th>
            
           </tr>
        </thead>
       <tbody>
       
       @foreach (var row in data)
       {
            <tr>
              
               <td class="table"> @row.Std_Name</td>

                <td class="table">@row.Std_RegId</td>

                <td class="table">@row.Std_Email</td>
               
                 
            </tr>
       }
        
       </tbody>
   </table>
@Html.ActionLink("Back to Request View", "RequestList");
         
    </div>